<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title>站点信息 - FinalCMS Admin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<link rel="stylesheet" href="${ctx}/css/bootstrap.min.css" />
<link rel="stylesheet" href="${ctx}/css/font-awesome.min.css" />
<link rel="stylesheet" href="${ctx}/css/jquery-ui.custom.min.css" />
<link rel="stylesheet" href="${ctx}/css/fc-fonts.css" />
<link rel="stylesheet" href="${ctx}/css/fc.min.css" />
<link rel="stylesheet" href="${ctx}/css/jquery.gritter.css" />
<!--[if lte IE 9]>
<link rel="stylesheet" href="${ctx}/css/fc-part2.min.css" />
<![endif]-->
<link rel="stylesheet" href="${ctx}/css/fc-skins.min.css" />
<link rel="stylesheet" href="${ctx}/css/fc-rtl.min.css" />
<!--[if lte IE 9]>
  <link rel="stylesheet" href="${ctx}/css/fc-ie.min.css" />
<![endif]-->
<link rel="stylesheet" href="${ctx}/css/fc-custom.css" />
<!--[if lte IE 8]>
<script src="${ctx}/js/html5shiv.js"></script>
<script src="${ctx}/js/respond.min.js"></script>
<![endif]-->
</head>

<body class="no-skin">
<?include("../../inc/menu.html",{current:"site"}){}?>
<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<ul class="breadcrumb">
			<li><i class="ace-icon fa fa-home home-icon"></i> 
				<a href="${ctx}/admin/account/dashboard">首页</a></li>
			<li class="active">站点信息</li>
		</ul>
	</div>
	<div class="page-content">
		<div class="page-header">
			<h1>站点信息
			<small><i class="ace-icon fa fa-angle-double-right"></i>编辑</small>
			</h1>
		</div>
		<div class="row">
			<?if(!isEmpty(error)) {?>${error}<?}?>
			<div class="col-xs-12">
		  		<form action="${ctx}/admin/site/save" class="form-horizontal" method="POST" id="frm">
		  			<?if(!isEmpty(site)){?>
		  			<input type="hidden" name="siteEntity.id" value="${site.id}"/>
		  			<?}?>
				  	<div class="form-group">
						<label class="col-sm-3 control-label" for="url">站点根网址</label>
						<div class="col-sm-9">
							<input type="text" id="url" name="siteEntity.url" value="${site.url!}" placeholder="站点根网址" class="col-xs-10 col-sm-5" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="name">网站名</label>
						<div class="col-sm-9">
							<input type="text" id="name" name="siteEntity.name" value="${site.name!}" placeholder="网站名" class="col-xs-10 col-sm-5" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="title">网站标题</label>
						<div class="col-sm-9">
							<input type="text" id="title" name="siteEntity.title" value="${site.title!}" placeholder="网站标题" class="col-xs-10 col-sm-5" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="keywords">关键词</label>
						<div class="col-sm-9">
							<input type="text" id="keywords" name="siteEntity.keywords" value="${site.keywords!}" placeholder="网站关键词" class="col-xs-10 col-sm-5" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="description">网站描述</label>
						<div class="col-sm-9">
							<input type="text" id="description" name="siteEntity.description" value="${site.description!}" placeholder="网站描述" class="col-xs-10 col-sm-5" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="theme">模版</label>
						<div class="col-sm-9">
							<input type="text" id="theme" name="siteEntity.theme" value="${site.theme!}" placeholder="模版" class="col-xs-10 col-sm-5" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="copyright">版权信息</label>
						<div class="col-sm-9">
							<input type="text" id="copyright" name="siteEntity.copyright" value="${site.copyright!}" placeholder="版权信息" class="col-xs-10 col-sm-5" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="icp">备案号</label>
						<div class="col-sm-9">
							<input type="text" id="icp" name="siteEntity.icp" value="${site.icp!}" placeholder="备案号" class="col-xs-10 col-sm-5" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="count">统计代码</label>
						<div class="col-sm-9">
							<textarea rows="8" id="count" name="siteEntity.count" placeholder="统计代码" class="col-xs-10 col-sm-8">${site.count!}</textarea>
						</div>
					</div>
					<div class="clearfix form-actions">
						<div class="col-md-offset-2 col-md-5">
							<a class="btn btn-sm pull-left" href="${ctx}/admin/site">
								<i class="ace-icon fa fa-arrow-left"></i> 返回
							</a>
							<button class="btn btn-info pull-right" type="button" id="submitBtn">
								<i class="ace-icon fa fa-check bigger-110"></i> 提交
							</button>
						</div>
					</div>
				 </form>								
			</div> <!-- end col-xs-12 -->
		</div><!-- end row -->
	</div>
</div>
<?include("../../inc/footer.html"){}?>
<script type="text/javascript" src='${ctx}/js/jquery1.11.0.min.js'></script>
<script type="text/javascript" src="${ctx}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/js/fc-extra.min.js"></script>
<script type="text/javascript" src="${ctx}/js/fc.min.js"></script>
<script type="text/javascript">
jQuery(function($) {
	$("#submitBtn").click(function(){
		$("#frm").attr("action", "${ctx}/admin/site/save");
		$("#frm").submit();
	});
});
</script>
</body>
</html>
